﻿
Partial Class Apps_report_master_type
    Inherits System.Web.UI.Page

    Protected Sub btnFilter_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnFilter.Click

        Try
            'TODO : 
            ' Old version "../Reports/report_master_type.aspx?type_status={0}&str_master_type_status={1}"
            Dim url = "../Reports/report_master_type2.aspx?type_status={0}&str_master_type_status={1}"
            url = String.Format(url, _
                                ddlStatus.SelectedValue, _
                                HttpUtility.UrlEncode(ddlStatus.SelectedItem.Text))

            Dim script = String.Format(" window.open('{0}','_blank');", url)

            ScriptManager.RegisterStartupScript( _
            Me, _
            Me.GetType(), _
            Guid.NewGuid().ToString(), _
            script, _
            True _
            )
        Catch ex As Exception
            GenericHelper.ShowAlert(Me, ex.Message)
        End Try

    End Sub

    Protected Sub Page_LoadComplete(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.LoadComplete
        Dim BreadCrumpBG As HtmlControl = Page.Master.FindControl("tdBreadCrump")
        Dim BreadCrump As Literal = Page.Master.FindControl("ltrBreadCrump")
        CodeMatrix.Business.GenericData.SetBreadCrump(BreadCrumpBG, BreadCrump, 49)
    End Sub
End Class
